#ifndef WATER_TEMPERATURE_CURVE_H
#define WATER_TEMPERATURE_CURVE_H

#include <QWidget>
#include<QChartView>
#include<QtCharts/QSplineSeries>
#include<QValueAxis>//普通坐标轴
#include<QDateTimeAxis>//时间坐标轴
#include<QtCharts>
#include<QDateTime>

namespace Ui {
class Water_Temperature_Curve;
}

class Water_Temperature_Curve : public QWidget
{
    Q_OBJECT

public:
    explicit Water_Temperature_Curve(QWidget *parent = nullptr);
    ~Water_Temperature_Curve();
    void chart_init();//曲线图初始化
    void update_data(QDateTime currentTime,int temperature);//更新数据
    //void test();
private slots:


private:
    Ui::Water_Temperature_Curve *ui;
    QChart* chart;
    QSplineSeries* lineSeries;
    QDateTimeAxis* axisX;
    QValueAxis* axisY;
};

#endif // WATER_TEMPERATURE_CURVE_H
